package phoenix.web.locators.base;

import org.openqa.selenium.By;

/**
 * Class provides base locators on IndexPage
 */
public abstract class IndexPageLocatorsBase
{
	// Login form
	public By linkOpenLoginForm = By.cssSelector("a.login_link");
	public By elLoginEmail = By.xpath("//label[@for='LoginForm_email']"); // Chrome required
	public By txtLoginEmail = By.xpath("//input[@class='ac_input']");
	public By txtLoginPassword = By.id("LoginForm_password");
	public By elLoginPassword = By.xpath("//label[@for='LoginForm_password']"); // Chrome required
	public By btnSubmitLogin = By.id("login_submit");
	public By linkForgotPassword = By.cssSelector("a.forgot-password");
	public By btnLoginSend = By.id("send_submit");

	// Registration form
	public By blockRegForm = By.id("register-form");
	public By selectRegGender = By.xpath("//select[@id='UserForm_gender']");
	public By btnGenderFemale = By.xpath("(//*[@id='gender_container']//li)[1]/span");
	public By btnGenderMale = By.xpath("(//*[@id='gender_container']//li)[2]/span");
	public By selectDay = By.id("UserForm_day");
	public By selectMonth = By.id("UserForm_month");
	public By selectYear = By.id("UserForm_year");
	public By txtRegEmail = By.id("UserForm_email");
	public By linkResendEmail = By.id("recoveryConfirm");
	public By blockEmailErrorMessage = By.id("UserForm_email_em_");
	public By txtRegPassword = By.id("UserForm_password");
	public By txtRegLocation = By.id("UserForm_location");
	public By btnRegSubmit = By.id("submit_button");

	// B2B login form
	public By txtEmailB2b = By.id("ManagerLoginForm_email");
	public By txtPasswordB2b = By.id("ManagerLoginForm_password");
	public By btnLoginSubmitB2b = By.xpath("//*[@name='yt0']");

	// Registration form validation icon
	public By blockBirthInvalidIcon = By.xpath("//*[@id='year_field']//*[@class='invalid']");
	public By blockEmailInvalidIcon = By.xpath("//*[@id='email_field']//*[@class='invalid']");
	public By blockPasswordInvalidIcon = By.xpath("//*[@id='password_field']//*[@class='invalid']");
	public By blockLocationInvalidIcon = By.xpath("//*[@id='location_field']//*[@class='invalid']");
	public By blockBirthValidIcon = By.xpath("//*[@id='year_field']//*[@class='valid']");
	public By blockEmailValidIcon = By.xpath("//*[@id='email_field']//*[@class='valid']");
	public By blockPasswordValidIcon = By.xpath("//*[@id='password_field']//*[@class='valid']");
	public By blockLocationValidIcon = By.xpath("//*[@id='location_field']//*[@class='valid']");

	// Registration form block terms and privacy
	public By linkTerms = By.id("a_terms");
	public By linkPrivacy = By.id("a_privacy");

	// NF
	public By btnClosePopup;

	// LGW
	public By btnNext;
}
